from rest_framework import serializers

from xyz.models import Question


class Questionserializer(serializers.ModelSerializer):

    # message = serializers.StringRelatedField()
    # success = serializers.BooleanField()
    # user_id = serializers.StringRelatedField()

    # extra_kwargs = {
    #     'user_id': {'required': True},
    # }

    class Meta:
        model = Question
        fields = '__all__'